package com.hzvtc.myproject.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@Accessors(chain = true)
public class Building {
    private Long id; // 楼栋ID

    @NotBlank
    private String name; // 楼栋名称

    private Long parentId; // 父楼栋ID

    private Integer studentNum; // 学生数量

    private Integer roomNum; // 宿舍数量

    private List<Building> children; // 子楼栋列表
}
